import Vue from "vue";
// 支持IE11和Safari 9
import "babel-polyfill";
import "nprogress/nprogress.css";
import "normalize.css";
import "./element-ui";
import "@/style/index.less";
import * as filters from "@/utils/filters";
const websdk = require("easemob-websdk");
import im from "@/components/WebIM";

for (let key in filters) {
  Vue.filter(key, filters[key]);
}

let webIM = (window.WebIM = websdk);

Vue.prototype.$WebIM = webIM;
Vue.prototype.$imConn = im.conn();
Vue.prototype.$currentUser = {};
